function isDev() {
  return window.location.host.indexOf('127.0.0.1') > -1 
  || window.location.host.indexOf('localhost') > -1
}

export function getDomain() {
  if (isDev()) {
    return 'https://new.icity24.xyz'
  } else {
    return `${window.location.protocol}//${window.location.host}`
  }
}